package com.andy.controller;

import com.andy.service.impl.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@RequestMapping("ABI")
public class AbiAutoController {

    @Autowired
    private AbiCreateControllerService abiCreateControllerService;

    @Autowired
    private AbiCreateDaoService abiCreateDaoService;

    @Autowired
    private AbiCreateEnumService abiCreateEnumService;

    @Autowired
    private AbiCreateTableService abiCreateTableService;

    @Autowired
    private AbiCreateCrudService abiCreateCrudService;

    @RequestMapping("/abiCreateController")
    public void abiCreateController(String input){
        abiCreateControllerService.createAbiControllerClass(input);
    }

    @RequestMapping("/abiCreateDao")
    public void abiCreateDao(String input){
        abiCreateDaoService.createDao(input);
    }

    @RequestMapping("/abiCreateEnum")
    public void abiCreateEnum(String input){
        abiCreateEnumService.createEnum(input);
    }

    @RequestMapping("/abiCreateTable")
    public void abiCreateTable(String input){
        abiCreateTableService.createTableSql(input);
    }

    @RequestMapping("/abiCreateCrud")
    public void abiCreateCrud(String input){
        abiCreateCrudService.createAbiControllerClass(input);
    }

    @RequestMapping("/createTempWhiteSql")
    public void createTempWhiteSql(String input){
        abiCreateDaoService.createTempWhiteList(input);
    }

}
